package com.qianyu.project.service.smj;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianyu.project.entity.ProjectInfo;
import com.qianyu.project.mapper.provider.smj.smjProviderDao;
import com.qianyu.project.utils.PageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class smjProviderInfoServiceImpl implements smjProviderInfoService {
    @Autowired
    private smjProviderDao pd;

    @Override//获取班组类型
    public List<Map<String, Object>> list() {
        return pd.list();
    }

    @Override//获取班组信息
    public IPage<Map<String, Object>> providerList(Map<String, String> params) {
        IPage<Map<String, Object>> page= PageUtil.createPage(params);
        return pd.providerList(page,params);
    }

    @Override//获取部门名称
    public List<Map<String, Object>> getDept() {
        return pd.getDept();
    }

    @Override//查询员工信息
    public IPage<Map<String, Object>> getEmp(Map<String, String> params) {
        IPage<Map<String, Object>> page= PageUtil.createPage(params);
        return pd.getEmp(page,params);
    }

    @Override//查询合同信息
    public IPage<Map<String, Object>> getLaber(Map<String, String> params) {
        IPage<Map<String, Object>> page= PageUtil.createPage(params);
        return pd.getLaber(page,params);
    }

    @Override//获取合同附件
    public List<Map<String, Object>> attachemeninfo(String id) {
        if(id == null || "".equals(id)){
            return null;
        }else{
            return pd.attachemeninfo(id);
        }

    }

    @Override//查询用户信息
    public IPage<Map<String, Object>> getBank(Map<String, String> params) {
        IPage<Map<String, Object>> page= PageUtil.createPage(params);
        return pd.getBank(page,params);
    }
}
